//
//  Util.m
//  YiLiao
//
//  Created by mac on 16/7/6.
//  Copyright © 2016年 Noah. All rights reserved.
//


#import "Util.h"

@implementation Util

+(void)showAlertWithMessager:(NSString *)messager confirmBlock:(Block)block
{
    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"温馨提示"message:messager preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *action = [UIAlertAction actionWithTitle:@"取消"  style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        block();
    }];
    [alertController addAction:action];
    
    [WINDOW.rootViewController presentViewController:alertController animated:YES completion:nil];
        
}

@end
